import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
import Description from '@/views/Description.vue'
import Exp from '@/views/Exp.vue'
import AIConstruct9 from '@/views/aiConstruct_9.vue'
import TestVue from '@/views/TestVue.vue'
import ShuangTan30 from '@/views/shuangTan_3_0.vue'
Vue.use(VueRouter)

const routes: Array<RouteConfig> = [

  {
    path: '/exp/aiConstruct_9',
    name: 'aiConstruct_9',
    component: AIConstruct9
  },
  {
    path: '/exp/shuangTan_3_0',
    name: 'shuangTan_3_0',
    component: ShuangTan30
  },

  {
    path: '/test',
    name: 'test',
    component: TestVue
  },
  {
    path: '/exp/:id',
    name: 'exp',
    component: Exp
  },
  {
    path: '/:id',
    name: 'description',
    component: Description
  }
]

const router = new VueRouter({
  routes
})

export default router
